package com.project.biz;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.entity.CmsRecoveryType;
import com.project.pojo.model.AddRecoveryTypeModel;
import com.project.pojo.model.UpdateRecoveryTypeModel;

import java.util.List;

/**
 * @Description: 回收品类业务层接口类
 * @Author: zhuchi
 * @CreateDate: 2020/11/13 20:56
 * @Version: 1.0
 */
public interface CmsRecoveryTypeBiz extends IService<CmsRecoveryType> {

    /**
     * 获取所有回收品类
     * @return
     */
    List<CmsRecoveryType> getAllRecoveryType();

    /**
     * 添加回收品类
     * @param addProductModel
     * @param userId
     * @return
     */
    int addRecoveryType(AddRecoveryTypeModel addProductModel, Long userId);

    /**
     * 修改回收品类
     * @param updateRecoveryTypeModel
     * @param userId
     * @return
     */
    int updateRecoveryType(UpdateRecoveryTypeModel updateRecoveryTypeModel, Long userId);

    /**
     * 删除回收品类
     * @param recoveryTypeId
     * @param userId
     * @return
     */
    int delRecoveryType(Long recoveryTypeId, Long userId);

}
